import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/user/login',
    method: 'post',
    data
  })
}

export function userinfo() {
  return request({
    url: '/user/userinfo',
    method: 'post'
  })
}

export function logout() {
  return request({
    url: '/user/logout',
    method: 'post'
  })
}


export function all(data) {
  return request({
    url: '/user/all',
    method: 'post',
    data
  })
}

export function allId(data) {
  return request({
    url: '/user/all/id',
    method: 'post',
    data
  })
}

export function allScheduleId(data) {
  return request({
    url: '/user/all/schedule/id',
    method: 'post',
    data
  })
}

export function add(data) {
  return request({
    url: '/user/add',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/user/update',
    method: 'post',
    data
  })
}

export function del(data) {
  return request({
    url: '/user/delete',
    method: 'post',
    data
  })
}
